package com.gmall.console.system.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gmall.console.base.Result;
import com.gmall.console.system.entity.Menu;
import com.gmall.console.system.entity.User;
import com.gmall.console.system.service.IMenuService;
import io.swagger.v3.oas.annotations.Operation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Jone
 * @since 2024-05-30
 */
@RestController
@RequestMapping("/menu")
public class MenuController {

    @Resource
    private IMenuService iMenuService;

    @GetMapping("/list")
    @Operation(summary = "菜单列表接口", description = "菜单列表接口描述")
    public Result<List<Menu>> list() {

        List<Menu> list = iMenuService.getMenuList();

        return Result.success(list,"查询成功");
    }

}
